ItemBanner.render   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
1
import React, { Component } from 'react';
2
import PropTypes from 'prop-types';
3
import { Card } from 'reactstrap';
4
import ItemBannerHeader from './ItemBannerHeader';
5
import ItemBannerBody from './ItemBannerBody';
6
7
class ItemBanner extends Component {
8
  static Header = ItemBannerHeader;
9
  static Body = ItemBannerBody;
10
11
  render() {
12
    return <Card className="mb-3">{this.props.children}</Card>;
13
  }
14
}
15
16
ItemBanner.propTypes = { children: PropTypes.node };
17
18
export default ItemBanner;
19